package com.cxcy.swustlearner.service;

import com.cxcy.swustlearner.pojo.Task;

import java.util.List;

public interface TaskService {
    void PublishTask(Task task, int permission, String studentId);
    List<Task> getTasks();
    List<Task> selectTaskByClassId(String classId,String majorId,String collegeId);
    List<Task> selectTaskByCollegeId(String collegeId);
    List<Task> selectTaskByMajorId(String majorId,String collegeId);
    List<Task> selectTaskByPublisherId(String publisherId);
    List<Task> selectTaskByPublisherIdAndPermissionZero(String publisherId);
    void deleteTaskByTaskId(Integer taskId);
}
